home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / Compilers⁄Interps / GCC-2.3.3r12 / Sources-Targets / xm-mpw.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-05-14  |  2.7 KB  |  105 lines  |  [TEXT/MPS ]

  1. /* Configuration for GNU C-compiler for Motorola 68000 family.
  2.    Copyright (C) 1987 Free Software Foundation, Inc.
  3.  
  4. This file is part of GNU CC.
  5.  
  6. GNU CC is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 2, or (at your option)
  9. any later version.
  10.  
  11. GNU CC is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. GNU General Public License for more details.
  15.  
  16. You should have received a copy of the GNU General Public License
  17. along with GNU CC; see the file COPYING.  If not, write to
  18. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  19.  
  20.  
  21. #ifndef MPW
  22. #define MPW
  23. #endif
  24.  
  25. /* This is for generic improvements to GCC. */
  26.  
  27. #define APPLE_HAX
  28.  
  29. /* This tweaks the preprocessor to like double slash as a comment. */
  30.  
  31. #define CPLUSPLUS
  32.  
  33. /* #defines that need visibility everywhere.  */
  34. #define FALSE 0
  35. #define TRUE 1
  36.  
  37. /* This describes the machine the compiler is hosted on.  */
  38. #define HOST_BITS_PER_CHAR 8
  39. #define HOST_BITS_PER_SHORT 16
  40. #define HOST_BITS_PER_INT 32
  41. #define HOST_BITS_PER_LONG 32
  42. #define HOST_BITS_PER_LONGLONG 64
  43.  
  44. #define HOST_WORDS_BIG_ENDIAN
  45.  
  46. #ifdef MPW_C
  47. #define ONLY_INT_FIELDS
  48. #endif
  49.  
  50. #include <Errors.h>
  51.  
  52. /* target machine dependencies.
  53.    tm.h is a symbolic link to the actual target specific file.   */
  54. #include "tm.h"
  55.  
  56. /* Arguments to use with `exit'.  */
  57. #define SUCCESS_EXIT_CODE 0
  58. #define FATAL_EXIT_CODE 33
  59.  
  60. /* If compiled with GNU C, use the built-in alloca */
  61. #ifdef __GNUC__
  62. /* Use an arg in this macro because that's what some other
  63.    system does--let's avoid conflict.  */
  64. #define alloca(x) __builtin_alloca(x)
  65. #endif
  66.  
  67. /* MPW-specific hacks. */
  68.  
  69. /* MPW C doesn't know about alloca. */
  70. #ifndef __GNUC__
  71. #define USE_C_ALLOCA
  72. #endif
  73.  
  74. /* Pick up the cursor-spinning magic. */
  75. #include <CursorCtl.h>
  76.  
  77. /* Assorted redefinitions, from BSD-like to SysV/ANSI-like. */
  78. #define bzero(a,b) memset(a,0,b)
  79. #define bcopy(a,b,c) memcpy(b,a,c)
  80. #define bcmp(a,b,c) memcmp(a,b,c)
  81. #define index strchr
  82. #define rindex strrchr
  83.  
  84. /* Fancy abort is a little more informative. */
  85. #if 0
  86. #define abort() SysError(8005)
  87. #else
  88. #define abort fancy_abort
  89. #endif
  90.  
  91. /* We want all newly created files to be type TEXT and creator 'MPS ', that is,
  92.    MPW Shell docs that we can look at by double-clicking. */
  93.  
  94. /* Crude, but simpler than trying to modify all the gen* programs. */
  95. #ifdef __STDIO__
  96. FILE *mpw_fopen();
  97. #endif
  98.  
  99. #define fopen(a,b) mpw_fopen(a,b)
  100. #define SHORT_ENUM_BUG
  101.  
  102. /* MPW uses a comma to separate the directories in a search path. */
  103.  
  104. #define PATH_SEPARATOR ','
  105.